import java.util.Scanner;

/**
 * 从键盘输入一个 0~99999 之间的任意数，判断输入的数是几位数？
 */
public class PanDuanJiWeiShu {
    public static void main(String[] args) {
        System.out.println("请输入一个0~99999 之间的任意数:");
        Scanner sc =new Scanner(System.in);
        int number=sc.nextInt();
        if(number/10000>=1&&number/10000<10){
            System.out.println(number+"\t是5位数");
        }
        else if(number/1000>=1){
            System.out.println(number+"\t是4位数");
        }
        else if(number/100>=1){
            System.out.println(number+"\t是3位数");
        }
        else if(number/10>=1){
            System.out.println(number+"\t是2位数");
        }
        else if(number/1>=1){
            System.out.println(number+"\t是1位数");
        }
    }
}
